//
//  TKTableViewCell.m
//  TableGridDemo
//
//  Created by kingboyrang on 2020/8/22.
//  Copyright © 2020 kingboyrang. All rights reserved.
//

#import "TKTableViewCell.h"

@implementation TKTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.tdView = [[TKTableTDView alloc] initWithFrame:self.contentView.bounds];
        
        [self.contentView addSubview:self.tdView];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    CGRect r = self.tdView.frame;
    r.size = self.frame.size;
    self.tdView.frame = r;
    
    NSLog(@"cell frame =%@",NSStringFromCGRect(self.bounds));
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
